from models.base import db
from sqlalchemy import Column, String, create_engine, Integer, CHAR


class sentences(db.Base):
    __tablename__ = 'sentence'
    id = Column(Integer, primary_key=True, autoincrement=True)
    order_number = Column(String(30), nullable=False)
    sentence_index = Column(CHAR(8), nullable=False)
    content = Column(String(150), nullable=False)
    paragraph_index = Column(Integer, nullable=False)
    is_similar = Column(Integer, nullable=False, default=0)
    suggest = Column(String(2000), default='')
    check_id = Column(Integer, default=0)
